<?php
namespace Home\Controller;

use Think\Controller;

class QuestionController extends CommonController
{
    public function index()
    {
        $this->display();
    }

    public function lists()
    {
        $questions = M('question')->field('id,title,content')->where(['is_show' => 1])->order('sort desc')->select();

        success($questions);
    }
}
